class InvitationEntity {
	int code;
	List<InvitationData> data;

	InvitationEntity({this.code, this.data});

	InvitationEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		if (json['data'] != null) {
			data = new List<InvitationData>();(json['data'] as List).forEach((v) { data.add(new InvitationData.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class InvitationData {
	String city;
	int time;
	int type;
	String title;

	InvitationData({this.city, this.time, this.type, this.title});

	InvitationData.fromJson(Map<String, dynamic> json) {
		city = json['city'];
		time = json['time'];
		type = json['type'];
		title = json['title'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['city'] = this.city;
		data['time'] = this.time;
		data['type'] = this.type;
		data['title'] = this.title;
		return data;
	}
}
